package org.demo.cloudclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xlang
 * @version 0.0.1
 * @desciption
 * @date 2020/8/25 19:38
 */
@RestController
@RequestMapping("client")
public class ClientController {

    @Value("${word}")
    private String word;

    @Value("${appenv}")
    private String appenv;

    @GetMapping("info")
    public String method() {

        return appenv + " -- " + word;
    }

}
